package com.guisu.material.recyclerview

import android.view.LayoutInflater
import android.view.ViewGroup
import com.guisu.material.databinding.ItemCommonBinding

class CommonItemAdapter: BaseAdapter<String, ItemCommonBinding>() {
    override fun getVB(inflater: LayoutInflater, parent: ViewGroup): ItemCommonBinding {
        return ItemCommonBinding.inflate(inflater, parent, false)
    }

    override fun addEventListener(holder: Holder) {

    }

    override fun onBindHolder(holder: Holder, position: Int) {
        getData(position).apply {
            holder.mBinding.root.text = this
        }
    }
}